package test;

public class StringToArray {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
//		String str="[2,3,4]";
		//String str="2,3,4";
		//String str="2,3,4,";
		//String str="2,";
		String str="2";
		String[] strArray=str.split(",");
		for (int i = 0; i < strArray.length; i++) {
			System.out.println(strArray[i]);
		}
	}

}
